package com.benmei.weike.dao;

import com.benmei.weike.dto.teacher.McTeaScheduleDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import com.benmei.weike.entity.McCourseSchedule;
import org.springframework.stereotype.Component;

@Component
@Mapper
public interface McCourseScheduleDao {
    int insert(@Param("pojo") McCourseSchedule pojo);

    int insertSelective(@Param("pojo") McCourseSchedule pojo);

    int insertList(@Param("pojos") List<McCourseSchedule> pojo);

    int update(@Param("pojo") McCourseSchedule pojo);

    McCourseSchedule findById(@Param("schedule_id")Integer schedule_id);

    /**
     * 根据课程id 查询课程中的课列表
     * @param mcCourseId
     * @return
     */
    List<McTeaScheduleDto> findScheduleAndTeaList(@Param("mcCourseId") Integer mcCourseId);
}
